package com.alm.handle.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("alm_dev_history_info")
public class SysDevHistoryInfo {

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField(value ="device_id")
    private String deviceId;

    @TableField(value ="voltage")
    private BigDecimal voltage;

    @TableField(value ="electric_current")
    private BigDecimal electricCurrent;

    @TableField(value ="active_power")
    private BigDecimal activePower;

    @TableField(value ="frequency")
    private BigDecimal frequency;

    @TableField(value ="power_factor")
    private BigDecimal powerFactor;

    // 用电量
    @TableField(value ="energy")
    private BigDecimal energy;

    @TableField(value ="work_status")
    private Integer workStatus;

    @TableField(value ="year")
    private Integer year;

    @TableField(value ="month")
    private Integer month;

    @TableField(value ="day")
    private Integer day;

    @TableField(value ="creat_time")
    private Long creatTime;

    @TableField(exist = false)
    private List<Long> searchTimeSlot;

}
